package router

import (
	"BaseApi/api"
	"BaseApi/common/global"
	"github.com/gin-gonic/gin"
	uuid "github.com/satori/go.uuid"
)

// 路由 路由组-路由
func init() {
	router := gin.Default()
	ApiRouter := router.Group("user")
	ApiRouter.GET("login", func(context *gin.Context) {
		context.JSON(200, gin.H{
			"msg": uuid.NewV4(),
		})
	})
	ApiRouter.GET("pay")
	ApiRouter.GET("userList", api.UserList)
	global.Router = router
}
